<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="div">
        <button id="btn">button</button>
        <span>ssss</span>
    </div>
</body>
<script>
    var btn = document.getElementById('btn')
    var div = document.getElementById('div')
    var body = document.body
    var document = document

    

    div.addEventListener('click', function() {
        console.log('div')
    })

    body.addEventListener('click', function() {
        console.log('body')
    })

    document.addEventListener('click', function() {
        console.log('document')
    })

    btn.addEventListener('click', function() {
        console.log('btn t')
    }, true)

    btn.addEventListener('click', function() {
        console.log('btn')
    })

    div.addEventListener('click', function() {
        console.log('div t')
    }, true)

    body.addEventListener('click', function() {
        console.log('body t')
    }, true)

    document.addEventListener('click', function() {
        console.log('document t')
    }, true)
</script>
</html>